﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PictrueSimpleSyndication
{
    public partial class FormPSS : Form
    {
        public FormPSS()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 数据额内容
        /// </summary>
        public IDataContent DataContent { get; set; }
        
        private void FormPSS_Load(object sender, EventArgs e)
        {
            if (DataContent == null)
                Close();

            var AllContentInfo = DataContent.GetAllContentInfo() ?? new List<ContentInfo>();

            if (AllContentInfo.Count() == 0)
                Close();

            userControlPictrueBox1.InitView(AllContentInfo);
        }
    }
}
